package com.nokia;

import com.nokia.framework.util.web.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSON;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chengzhong
 * @date 2019/11/4
 */
@Api(description = "测试Controller类")
@RestController
@RequestMapping("test")
public class TestController {

    @ApiOperation(value = "测试接口")
    @GetMapping("index")
    public JSON index(){
        return ResultData.successToJson("接口调用成功");
    }
}
